AMD OSVW (OS Visible Workaround) for Xen
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 18:04:57 +0000 (19:04 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 18:04:57 +0000 (19:04 +0100)
commit2604adda4f817c3d9bf81a9c45b2bafda79ec4e9
tree7bda70ec46d45cbc4f1ed2a5fef5987d3392f68d
parent2156299cf0ff74c2b9ee708650bb8e46a4fcfc26
AMD OSVW (OS Visible Workaround) for Xen

This path enables AMD OSVW (OS Visible Workaround) feature for
Xen. New AMD errata will have a OSVW id assigned in the future. OS is
supposed to check OSVW status MSR to find out whether CPU has a
specific erratum. Legacy errata are also supported in this patch:
traditional family/model/stepping approach will be used if OSVW
feature isn't applicable.  This patch is adapted from Hans Rosenfeld's
patch submitted to Linux kernel.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Hans Rosenfeld <hands.rosenfeld@amd.com>
Acked-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/amd.h [deleted file]
xen/arch/x86/hvm/svm/asid.c
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/amd.h [new file with mode: 0644]
xen/include/asm-x86/msr-index.h